package common;

public class WordFrequency implements Comparable<WordFrequency> {
    private String word;

    private int count;

    private int tweetCount;

    public WordFrequency(String word) {
        this(word, 1, 0);
    }

    public WordFrequency(String word, int count, int tweetCount) {
        super();
        this.word = word;
        this.count = count;
        this.tweetCount = tweetCount;
    }

    public String getWord() {
        return word;
    }

    public int getCount() {
        return count;
    }

    public int getTweetCount() {
        return tweetCount;
    }

    public void incrementCount() {
        count++;
    }

    public void incrementTweetCount() {
        tweetCount++;
    }

    @Override
    public int compareTo(WordFrequency other) {
        return this.count - other.count;
    }

}
